home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / Script Examples / Install PowerMac [ compressed ] / Makefile < prev    next >
Encoding:
Makefile  |  1994-11-15  |  3.0 KB  |  74 lines  |  [TEXT/MPS ]

  1. scriptName                = InstallFatApp
  2. debugScriptName            = {scriptName}.debug
  3. localScriptCheckExtName    = {scriptName}.scx
  4.  
  5. sourceFile                = CheckIfInternalRuleFunc
  6.  
  7. OBJECTS                    = CheckIfInternalRuleFunc.c.o
  8. ScriptCheckDir            = :::ScriptCheck 4.0.3:
  9. InstallerCIncDir        = :::DeveloperInterfaces:CIncludes:
  10. InstallerCSrcDir        = :::DeveloperInterfaces:CSources:
  11. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  12. InstallerDebuggerDir    = :::Installer Debugger 4.0:
  13. InstaCompOneDir            = :::InstaCompOne 1.0:
  14.  
  15. compressTool            = :::InstaCompOne 1.0:InstaCompOneTool
  16.  
  17. # NOTE: The source file for the compression command should have the
  18. # same file type and creator as the resulting target application, since
  19. # this decompression will be performed via file atom. InstaCompOne looks
  20. # for an entry in the file archive that has matching filename, type and
  21. # creator as the target spec ( 'intf' ) of the file atom ( 'infa' ).
  22. # Filename can be modified using the -f option with InstaCompOneTool,
  23. # but the file type and creator must be correct already in the source file.
  24. PowMacDataForkSrcName    = :Source Files:PowMac Data Fork
  25. PowMacEntryName            = ModApp
  26. PowMacArchiveName        = :Disk 1:PowMacFileArchive
  27.  
  28. PowMacRsrcForkSrcName    = :Source Files:PowMac Rsrc Fork
  29. PowMacRsrcForkTgtName    = :Disk 1:Power Macintosh Part
  30.  
  31. 68KRsrcForkSrcName        = :Source Files:68K Macintosh Part
  32. 68KArchiveName            = :Disk 1:68KRsrcArchive
  33.  
  34. ScriptCheckExtension    = {InstaCompOneDir}InstaCompOneSCExt.rsrc
  35.  
  36. COptions        = -b -r -sym on
  37. LinkOptions        = -mf -sym on
  38.  
  39. "{debugScriptName}" ƒ "{scriptName}"
  40.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  41.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  42.  
  43. "{scriptName}" ƒƒ "{sourceFile}" "{scriptName}.r" "{PowMacArchiveName}" "{PowMacRsrcForkTgtName}" "{68KArchiveName}" "{localScriptCheckExtName}"
  44.     set theTime    "'`date -d -s` 12:00:00 PM'"
  45.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  46.     SetFile -a b -d {theTime} "{scriptName}"
  47.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  48.     SetFile -m {theTime} "{scriptName}"
  49.  
  50.  
  51. "{sourceFile}" ƒ "{OBJECTS}"
  52.     Link {LinkOptions} -t rsrc -c RSED -rt infn=143 -m CheckIfInternalRuleFunc -sg "{sourceFile}" ∂
  53.         "{OBJECTS}" ∂
  54.         "{Libraries}Interface.o" ∂
  55.         -o "{sourceFile}"
  56.         
  57. "{sourceFile}.c.o" ƒ "{sourceFile}.c"
  58.     C {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}"
  59.  
  60. "{PowMacArchiveName}" ƒ "{PowMacDataForkSrcName}"
  61.     "{compressTool}" "{PowMacDataForkSrcName}" -f "{PowMacEntryName}" -o "{PowMacArchiveName}"
  62.  
  63. "{68KArchiveName}" ƒ "{68KRsrcForkSrcName}"
  64.     "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=0 -a 'part'=0 -o "{68KArchiveName}"
  65.     "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=1 -a 'part'=1 -o "{68KArchiveName}"
  66.     "{compressTool}" "{68KRsrcForkSrcName}" -k 'CODE'=2 -a 'part'=2 -o "{68KArchiveName}"
  67.  
  68. "{PowMacRsrcForkTgtName}" ƒ "{PowMacRsrcForkSrcName}"
  69.     duplicate -y -r "{PowMacRsrcForkSrcName}" "{PowMacRsrcForkTgtName}"
  70.  
  71. "{localScriptCheckExtName}" ƒ "{ScriptCheckExtension}"
  72.     Duplicate -y "{ScriptCheckExtension}" "{localScriptCheckExtName}"
  73.  
  74.